package bitSedDemo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-05-03
 * Time: 19:25
 */
public class Test {
    public static void main(String[] args) {
        int[] array = {1,3,3,4,5,9,6,7,2,3,4,4,15,1000};
        MyBitSet myBitSet = new MyBitSet(18);
        for (int i = 0; i < array.length ; i++) {
            myBitSet.set(array[i]);
        }
        System.out.println(myBitSet.getUsedSize());
        System.out.println(myBitSet.get(1));
        System.out.println(myBitSet.get(4));

        myBitSet.reSet(4);
        System.out.println(myBitSet.get(4));
        System.out.println("====================");
        System.out.println(myBitSet.getUsedSize());
        myBitSet.sort();

    }
}
